package com.hsj;

public class Main {
    public static void main(String[] args) {

        Thread t1 = new Thread() {
            @Override
            public void run() {
                method1(20);
            }
        };
        t1.setName("t1");
        t1.start();
        method1(10);

    }

    public static void method1(int x){
        int y = x+1;
        Object o = method2();
        System.out.println(o);

    }
    public static Object method2(){
        Object o = new Object();
        return o;
    }

}